import type { NextConfig } from 'next';
const path = require('path');

const nextConfig: NextConfig = {
  /* config options here */
  reactStrictMode: true,
  // lessLoaderOptions: {
  //   lessOptions: {
  //     javascriptEnabled: true,
  //   }
  // },
  webpack: (config) => {
    config.module.rules.push({
      test: /\.svg$/,
      use: ['@svgr/webpack'],
    });
    config.resolve.alias = {
      ...config.resolve.alias,
      'lodash-es': 'lodash',
      '@': path.resolve(__dirname, './'), // Add this line to resolve the @ alias to the root directory of the projec
    };
    return config;
  },
};

export default nextConfig;
